<?php if (!empty($stories)) {?>
<table class="a_table tips_table">
	<thead>
		<tr>
			<th width="90" class="text_right">悬赏</th>
			<th class="text_left">事项</th>
			<?php if(empty($type) || (!empty($type) && $type !='pub')) {?>
			<th width="90">发布人</th>
			<?php }?>
			<th width="100">发布日期</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($stories as $story) { ?>
		<tr>
			<td class="orange text_right"><?php echo round($story['bonus'], 2);?>元</td>
			<td class="font14 text_left">
				<div class="one_line" style="width:100%">
					<a href="<?php echo site_url("story/show/" . $story['id']);?>"><?php echo $story['title'];?></a>
				</div>
			</td>
			<?php if(empty($type) || (!empty($type) && $type !='pub')) {?>
			<td class="grey">
				<a href="/user/show?user_id=<?php echo $story['created_by'];?>"><?php echo $story['nickname'];?></a>
			</td>
			<?php }?>
			<td class="grey"><?php echo substr($story['created'], 0, 10);?></td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<?php }?>